//跨域代理前缀
const API_PROXY_PREFIX = '/api'
const BASE_URL = process.env.NODE_ENV === 'production' ? process.env.VUE_APP_API_BASE_URL : API_PROXY_PREFIX
// const BASE_URL = process.env.VUE_APP_API_BASE_URL
module.exports = {
  LOGIN: `${BASE_URL}/sys/auth/login`,
  ROUTES: `${BASE_URL}/sys/auth/routes`,
  USER_INFO: `${BASE_URL}/sys/user/queryUserInfo`,
  AUTH_TREE: `${BASE_URL}/sys/auth/tree`,
  Q_SYS_USER_LIST: `${BASE_URL}/sys/user/page`,
  SAVE_SYS_USER: `${BASE_URL}/sys/user/save`,
  DELETE_SYS_USER: `${BASE_URL}/sys/user/delete`,
  Q_SYS_ROLE_LIST: `${BASE_URL}/sys/role/page`,
  SAVE_SYS_ROLE: `${BASE_URL}/sys/role/save`,

  Q_SYS_OPLOG_LIST: `${BASE_URL}/sys/log/page`,

  GOODS: `${BASE_URL}/goods`,
  GOODS_COLUMNS: `${BASE_URL}/columns`,
}
